<?php
/**
 * 用户确认合成视频
 */
require_once dirname(__DIR__)."/login_filter.php";
//require_once dirname(dirname(__DIR__))."/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\cls\sdk\FoundaoVideoSDK;
use app\cls\tom\FFmpeg;
use app\cls\tom\Config;
use app\model\UserVideo;
if(empty($_REQUEST['job_id'])){
    Response::output(-1,"缺少参数");
}
//用户uuid
$uuid=$Auth['uuid'];

$data['del1']=2;
$data['examine']=3;
//$data['replace_time2']=date("Y-m-d H:i:s");
$db = SysResource::getDB(true);
$UserVideo=new UserVideo($db);
//$_REQUEST['job_id']=rand(1,999999);
$res=$UserVideo->update_materials($data,$_REQUEST['job_id']);
if($res){
    Response::output(0,"提交成功",$img_path,$_REQUEST['video_url']);
}else{
    Response::output(-1,"提交失败");
}


